<template>
  <div>
      <div class="login_box">
          <h2 style="color: #666">新用户注册</h2>
          <p style="color: #666">很高兴您将成为商城的会员（注册只需一步）</p>
          <div class="login_input">
              <input type="text" placeholder="手机号码" class="login_input_inp">
              <div class="login_input_icon"></div>
          </div>
          <div class="login_input">
              <input type="text" placeholder="密码" class="login_input_inp">
              <div class="login_input_icon"></div>
          </div>
          <div class="login_input">
              <input type="text" placeholder="确认密码" class="login_input_inp">
              <div class="login_input_icon"></div>
          </div>
          <div class="login_input">
              <input type="text" placeholder="用户名" class="login_input_inp">
              <div class="login_input_icon"></div>
          </div>
          <div class="login_input">
              <input type="text" class="login_input_inp">
              <div class="login_input_icon">
                  <img src="../assets/psw.jpg" width="100%">
              </div>
          </div>
          <div class="login_input">
              <div class="login_input_inp"></div>
              <div class="login_input_icon"></div>
          </div>
          <div class="login_input">
              <div class="login_input_inp"></div>
              <div class="login_input_icon login_psw">获取验证码</div>
          </div>
          <div class="login_btn" @click="goEnroll">立 即 注 册</div>
          <p class="login_enroll">已有账号？ 立即登录</p>
      </div>
  </div>
</template>

<script>
export default {
    methods: {
        goEnroll() {
            this.$router.push("/login")
        }
    }
}
</script>

<style scoped>
.login_box {
    width: 70%;
    margin: 15%;
}
.login_btn {
    width: 80%;
    height: 1rem;
    font-size: 0.25rem;
    margin: 10%;
    color: #fff;
    text-align: center;
    line-height: 1rem;
    background: linear-gradient(135deg, #e570e7 0%, #79f1fc 100%);
    -webkit-tap-highlight-color: transparent;
    border-radius: 0.1rem;
}
.login_input {
    width: 100%;
    height: 1rem;
    margin: 0.2rem 0;
    border-radius: 0.1rem;
    background-color: #F5F5F5;
    display: flex;
    justify-content: space-around;
    align-items: center;
    overflow: hidden;
}
.login_input_inp {
    width: 45%;
    height: 100%;
    border: none;
    outline: none;
    color: #666;
    background-color: #F5F5F5;
}
.login_input_icon {
    width: 45%;
    height: 100%;
    background-color: #F5F5F5;
}
.login_psw {
    text-align: center;
    line-height: 1rem;
    border-left: 0.01rem solid #666;
}
.login_reset {
    font-size: 0.2rem;
    color: #666;
    text-align: center;
}
.login_enroll {
    font-size: 0.2rem;
    color:skyblue;
    text-align: center;
    font-weight: bold;
}
</style>